
i = 1
result = 1

def jiecheng(j):

	# global i
	global result





	if j>1:
		return j * jiecheng(j-1)
	else:
		return j

	# 函数调用自身叫做递归
	# result = j * jiecheng(j-1)



	# result = result * (j - 1)
	# while i<= j:
	# 	result = result * i
	# 	i += 1
	# print(result)
result = jiecheng(4)
print(result)


# j = int(input('请输入大于0的数:'))
# def jiecheng():
# while i<=4:
# 	result = result * i
# 	i+=1
# print(result)

# jiecheng()